<?php
/**
 * Created by JiangJiaCai.
 * User: LongBob
 * Date: 17-9-24
 * Time: 下午8:37
 */

namespace ext\dao;


use App\Models\QdcsOrg;
use ext\lib\BaseDaoImpl;

class OrgDaoImpl extends BaseDaoImpl
{
    public function getRoot(){
        return QdcsOrg::limit(1)->first();
    }

    public function getListPage(int $pageSize){
        return QdcsOrg::paginate($pageSize);
    }
}